package com.niiwoo.civet.trade.dto.response.creditor;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.math.BigDecimal;

@Setter
@Getter
@ToString
public class CreditorSaleDetailResponseDTO implements Serializable {

    private static final long serialVersionUID = 841491089644261584L;
    // 债权出让明细订单表ID
    private Long creditorSaleDetailId;
    // 投资订单ID
    private Long investOrderId;
    // 标的id
    private Long projectId;

    // 债权出让人用户id
    private String creditorUserId;
    // 债权出让人头像
    private String creditorHeadImage;
    // 债权出让人昵称
    private String creditorNickName;
    // 债权出让人性别:(0、未知 1、男 2、女)
    private Byte creditorGender;
    // 债权出让人你我分
    private Integer creditorNiiwooScore;

    private String realName;

    // 年化利率(10%则返回0.1)
    private BigDecimal borrowRate;
    // 年化利率*100(10%则返回10)
    private String borrowRateDesc;

    private Byte borrowerType;

    // 标的总期数
    private Integer deadline;
    // 剩余期数月
    private Integer remainingDeadlineMonth;
    // 剩余期数天
    private Integer remainingDeadlineDay;
    // 最后一期回款日(格式:yyyy-MM-dd)
    private String endDate;

    // 优惠方式：1全价转让，2降价转让
    private Byte favorableType;
    // 债权出让价格
    private BigDecimal saleAmount;
    // 债权金额
    private BigDecimal amount;
    // 降价比例
    private BigDecimal offPercent;
    // 降价金额
    private BigDecimal offAmount;
    // 预期收益
    private BigDecimal interest;
    //出让期间利息
    private BigDecimal sellingInterest;
    //出让期间手续费
    private BigDecimal sellingExpenseAmount;
    //系统当前时间(格式:yyyy-MM-dd HH:mm:ss)
    private String currentTime;
    // 过期时间(格式:yyyy-MM-dd HH:mm:ss)
    private String expireTime;
    // 到期时间(秒)
    private Integer countDownTime;

    // 收益方式：(1到期还本息，2等额本息，3按月还息，到期还本)
    private Byte repaymentType;

    // 债转标的状态：0-转让申请中，1-转让中，2-转让成功，3-已结束
    private Byte status;

    // 借款用途
    private String loanUsage;

    // 标的类型(默认1:极速借个人 2:极速借机构 3:你我云贷 4:卡易借 8:小易借 9:社保借 10:信用卡借 11:极速借机构 12:装修借
    private Byte projectType;

    // 常见问题url
    private String commonProblemUrl;

    // 产品介绍url
    private String productPresentationUrl;

    // 担保方式H5页面地址
    private String guaranteeModelH5Url;

    //(value = "债权转让协议路径")
    private String creditorAgreementUrl;

    //(value = "债权转让风险提示书路径")
    private String creditorRiskAgreementUrl;

    //@ApiModelProperty(value = "是否可转让  0:不可转让  1:可转让")
    private Byte istransfer;
    
    // 借款人用户id
    private String borrowUserId;
}